package com.ccz.demo.design.chain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Rule {
    // 规则名称
    @Null(message = "该字段只能为空")
    private String ruleName;
    // 规则描述
    @NotNull
    private String ruleDesc;
    // 规则级别
    private Integer level;
}
